﻿{include file="public/header" /}
<title>鼓励金转账</title>
	<head>
		<meta charset="utf-8" />
		<title>鼓励金转账记录</title>
		<link rel="stylesheet" href="__OEM__/css/iconfont.css" />
		<link rel="stylesheet" href="__OEM__/css/css.css" />
	</head>

<body>
	<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 财务管理 <span class="c-gray en">&gt;</span> 鼓励金转账
		<a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新"><i class="Hui-iconfont">&#xe68f;</i></a>
	</nav>
	<div class="page-container">
	<div class="tabBar cl">
		<a style="color: white;text-decoration:none;" href="{:url('oem_zz')}"><span class="current">服务商转账记录</span></a>
		<a style="color: black;text-decoration:none;" href="{:url('glj_zz')}"><span>会员转账记录</span></a>
	</div>
	<div class="chax_xzbtnbox">
		<a href="#" onclick="check()"><i class="iconfont icon-daochu"></i>导出</a>
	</div>	
	<table class="table table-border table-bordered table-bg">
		<thead>
			<tr class="text-c">
				<th>转账人</th>
				<th>转账对象</th>
				<th>收账人</th>
				<th>转账鼓励金</th>
				<th>服务费</th>
				<th>交易时间</th>
			</tr>
		</thead>
		<tbody>
			{volist name="list" id="vo" }
			<tr class="text-c">
				<td>{$vo.zzr}</td>
				<td>{if $vo.type==1}转省代
					{elseif $vo.type==2}转市代
					{elseif $vo.type==3}转商家
					{elseif $vo.type==4}转会员
					{/if}</td>
				<td>{if $vo.type==1}{$vo.skr2}
					{elseif $vo.type==2}{$vo.skr2}
					{elseif $vo.type==3}{$vo.skr}
					{elseif $vo.type==4}{$vo.skr1}
					{/if}</td>
				<td><?php  echo abs($vo['balance']); ?></td>
				<td><?php  echo abs($vo['balance'])*0.05; ?></td>
				<td>{$vo.add_time}</td>
			</tr>
			{/volist}
			</tbody>
			</table>
			<div class="fenye" style="display: block;">
				{$list->render()}
			</div>
		</div>
		
		{include file="public/footer" /}
		<script type="text/javascript">
			/*审核跳转*/
			function tx_operate(title, url, w, h) {
				layer_show(title, url, w, h);
			}
		
			/*审核*/
			function tx_operate1(obj, id) {
				$.ajax({
					type: 'get',
					url: "{:url('sys/tx_operate')}",
					dataType: 'json',
					data: {
						id: id
					},
					success: function(data) {
						if(data.code == 200) {
							$(obj).parents("tr").remove();
							layer.msg(data.msg, {
								icon: 1,
								time: 1000
							});
						} else {
							layer.msg(data.msg, {
								icon: 1,
								time: 1000
							});
						}
					},
					error: function(data) {
						console.log(data.msg);
					}
				});
			}

			//导出
			function check() {
				window.location.href = "/admin/sys/oemzz_dc.html";
			}
		</script>